import { createStore } from 'vuex';
import { relationResponse } from '/@/api/thingsborad/entity/model/entityModel';

export default createStore({
  state: {
    selectedPlan: null as relationResponse | null, // 存储当前选中的方案
  },
  mutations: {
    SET_SELECTED_PLAN(state, plan: relationResponse) {
      state.selectedPlan = plan;
    },
  },
  getters: {
    selectedPlan: (state) => state.selectedPlan,
  },
});
